package com.xingkeduo.business.schedule.remote;

import com.alibaba.fastjson.JSON;
import com.xingkeduo.business.schedule.dto.ResponseMessage;
import com.xingkeduo.business.schedule.remote.feign.OrderFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class OrderRemoteService {
    @Resource
    private OrderFeignService orderFeignService;

    /**
     * 每晚23:30点，未开始服务订单过号
     */
    public void overNumber() {
        ResponseMessage responseMessage = orderFeignService.overNumber();
        log.info("overNumber responseMessage:{}", JSON.toJSONString(responseMessage));
    }
}
